<template>
	<view class="plr20">
		<Location></Location>
		<uni-notice-bar single="true" :show-icon="true" background-color="#fff" color="#ffb956" text="公告: 加量不加价,预约更实惠"></uni-notice-bar>
		<HotSale></HotSale>
		<image src="../../static/test/index04.png"
			class="wfull d-block h150 mt10"></image>
		<List class="mt20"></List>
	</view>
</template>

<script>
	import Location from '../../components/location.vue'
	import HotSale from '../../components/hot-sale.vue'
	import List from '../../components/list.vue'
	import uniNoticeBar from '@/components/uni-notice-bar/uni-notice-bar.vue'
	export default {
		data() {
			return {
				
			}
		},
		components: {
			Location,
			HotSale,
			List,
			uniNoticeBar
		},
		onLoad() {
			
		},
		created() {
			//定位
			this.fnGetLocation();
		},
		beforeMount() {
			
		},
		onReady() {
			
		},
		methods: {
			fnGetLocation(){
				console.log('ccc');
				uni.getLocation({
				    type: 'wgs84',
				    success: function (res) {
				        console.log( res);
				    }
				});
			}
		}
	}
</script>

<style scoped>

</style>
